package com.alipay.mapper;

import com.alipay.pojo.BusinessInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BusinessInfoMapper {
    /**
     * delete by primary key
     *
     * @param businessId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer businessId);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(BusinessInfo record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(BusinessInfo record);

    /**
     * select by primary key
     *
     * @param businessId primary key
     * @return object by primary key
     */
    BusinessInfo selectByPrimaryKey(Integer businessId);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(BusinessInfo record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(BusinessInfo record);

    BusinessInfo businessLogin(@Param("username") String username, @Param("password") String password);

    List<BusinessInfo> selectBusinessInfo(@Param("businessId") Integer businessId, @Param("name") String name, @Param("status") Boolean status);
}
